package com.java.cloud.service;

import com.github.pagehelper.PageHelper;
import com.java.cloud.controller.SysMachine;
import com.java.cloud.dao.SysMachineDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @ClassName: SysMachineServiceImpl
 * @Description:
 * @Version: v1.0.0
 * @Author: Fu Hao
 * @Date: 2019/10/16 0016 下午 3:56
 * Modification History:
 * Date           Author      Version     Description
 * -------------------------------------------------------------
 * 2019/10/16 0016        Fu Hao      v1.0.0         创建
 */
@Service
public class SysMachineServiceImpl implements SysMachineService {

    @Autowired
    private SysMachineDao sysMachineDao;

    @Override
    public List<SysMachine> selectSysMachine(Integer page, Integer size) {
        PageHelper.startPage(page,size);
        return sysMachineDao.selectSysMachine();
    }
}
